<!DOCTYPE html>
<html>
<head>
    <title>工厂提现规则</title>
	<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">

            <form class="form-inline" role="form">
                <a class="btn btn-default btn-sm" @click="reset"><i class="fa fa-refresh"></i></a>

                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model.trim="q.factoryName" @keyup.enter="query" placeholder="工厂">
                </div>&nbsp;&nbsp;&nbsp;

                <a class="btn btn-default btn-sm"  @click="query"><i class="fa fa-search"></i>&nbsp;查询</a>

                <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
                <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
                <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
            </form>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
                <div class="form-group">
                    <div class="col-sm-2 control-label">工厂：</div>
                    <div class="col-sm-10">
                        <el-select v-model="supplierApplyCashRule.factoryId" filterable placeholder="请选择" size="mini">
                            <el-option v-for="item in sellerInfoList" :key="item.sellerId" :label="item.sellerName" :value="item.sellerId"></el-option>
                        </el-select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">规则类型：</div>
                    <div class="col-sm-10">
                        <select class="form-control input-sm" v-model="supplierApplyCashRule.ruleType">
                            <option value="1">月结</option>
                            <option value="2">日结</option>
                        </select>
                    </div>
                </div>
                <div class="form-group" v-show="supplierApplyCashRule.ruleType == 1">
                    <div class="col-sm-2 control-label">月结时间：</div>
                    <div class="col-sm-10">
                        <select class="form-control input-sm" v-model="supplierApplyCashRule.ruleMonth">
                            <option value="25">25号</option>
                            <option value="05">5号</option>
                        </select>
                    </div>
                </div>
                <div class="form-group" v-show="supplierApplyCashRule.ruleType == 2">
                    <div class="col-sm-2 control-label">日结天数：</div>
                    <div class="col-sm-10">
                        <input type="number" class="form-control input-sm" v-model="supplierApplyCashRule.ruleDay" placeholder="日结天数"/>
                    </div>
                </div>
				<div class="form-group">
                    <div class="col-sm-2 control-label"></div>
                    <input type="button" class="btn btn-primary  btn-sm" @click="saveOrUpdate" value="确定"/>
                    &nbsp;&nbsp;
                    <input type="button" class="btn btn-warning  btn-sm" @click="reload" value="返回"/>
                </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/capital/supplierapplycashrule.js?_${.now?long}"></script>
</body>
</html>